  <!--[if IE 9]>
  <style type="text/css">
      .limit-ie .select-sub{ width: 547px\9\0}
  </style>
  <![endif]-->
<div ng-controller="HeaderController">
    <div class="mt15 f14 clearfix">
        <span class="fl lh30 mr10 ng-hide" ng-show="baseData.showProjectList">项目名称</span>
        <div style="width: 530px" class="fl limit-ie ng-hide" ng-show="baseData.showProjectList">
            <div ui-project data="baseData.projectList" multiple
                 ng-model="baseData.projectIds" ng-change="baseData.changed = true"></div>
        </div>
        <span class="fl lh30 mr10 c-gray ng-hide" ng-show="baseData.showProjectList">（可多选）</span>

        <div class="fr lh30 cursor ng-hide" ng-click="showRule = !showRule" ng-show="baseData.showProjectList">
            <i class="report-icon-hint"></i><span class="fl">报表统计规则</span><span class="fl report-arrow"></span>
        </div>
    </div>
    <div class="border-wrap relative mt20 lh24 f12 ng-hide" ng-show="showRule" style="margin-bottom:20px">
        <p><span class="b">更新时间：</span>统计数据更新至每日凌晨00:00，也就是仅能查看昨日之前的数据。如您用业务管理模块查看/导出的实时数据与本统计报表做对比，可能发现数据不一致。</p>
        <p><span class="b">统计范围：</span>本报表仅统计由全民营销产生的业务数据，因此可能与售楼系统或其它案场销售管理工具的数据有不一致之处。</p>
        <p><span class="b">影响因素：</span>如您曾做过修改佣金发放条件、手工修改客户交易状态等操作，可能会导致部分数据有一定表面的误差。</p>
        <span class="border-arrow" style="right:103px"></span>
    </div>
    <div class="mt10 f14" ng-controller="SearchController">
        <div class="clearfix">
            <span class="fl lh30 mr10">时间区间</span>
            <div class="fl btn-group">
                <a href="javascript:;" class="btn fl btn-gray" style="margin-left: 0"
                   ng-class="{'btn-yellow': baseData.dateMode == 'all'}"
                   ng-click="baseData.setDateMode('all'); query.query()">全部</a>
                <a href="javascript:;" class="btn fl btn-gray"
                   ng-class="{'btn-yellow': baseData.dateMode == 'week'}"
                   ng-click="baseData.setDateMode('week'); query.query()">本周</a>
                <a href="javascript:;" class="btn fl btn-gray"
                   ng-class="{'btn-yellow': baseData.dateMode == 'month'}"
                   ng-click="baseData.setDateMode('month'); query.query()">本月</a>
                <a href="javascript:;" class="btn fl btn-gray"
                   ng-class="{'btn-yellow': baseData.dateMode == 'quarter'}"
                   ng-click="baseData.setDateMode('quarter'); query.query()">本季</a>
                <a href="javascript:;" class="btn fl btn-gray"
                   ng-class="{'btn-yellow': baseData.dateMode == 'year'}"
                   ng-click="baseData.setDateMode('year'); query.query()">本年</a>
            </div>
            <div class="fl">
                <span class="fl lh30 mr10" style="padding-left: 10px">自定义</span>
                <input type="text" class="fl input-text input-data" readonly
                       style="width: 120px;"
                       ui-date format="yyyy-MM-dd"
                       id="start_date" max-date="#F{$dp.$D(\'end_date'\)}"
                       ng-model="baseData.startDate">
                <span class="fl lh30">&nbsp;&nbsp;-&nbsp;&nbsp;</span>
                <input type="text" class="fl input-text input-data" readonly
                       style="width: 120px;"
                       ui-date format="yyyy-MM-dd" max-date="%y-%M-{%d-1}" min-date="#F{$dp.$D(\'start_date'\)}"
                       id="end_date"
                       ng-model="baseData.endDate">
                <a href="javascript:;" class="fl btn mlr5" ng-click="baseData.setDateMode('custom'); query.query()">查询</a>
            </div>

            <div class="fr lh30 cursor ng-hide" ng-click="showRule2 = !showRule2" ng-show="!baseData.showProjectList">
                <i class="report-icon-hint"></i><span class="fl">报表统计规则</span><span class="fl report-arrow"></span>
            </div>
        </div>
        <div class="border-wrap relative mt20 lh24 f12 ng-hide" ng-show="showRule2" style="margin-bottom:20px">
            <p><span class="b">更新时间：</span>统计数据更新至每日凌晨00:00，也就是仅能查看昨日之前的数据。如您用业务管理模块查看/导出的实时数据与本统计报表做对比，可能发现数据不一致。</p>
            <p><span class="b">统计范围：</span>本报表仅统计由全民营销产生的业务数据，因此可能与售楼系统或其它案场销售管理工具的数据有不一致之处。</p>
            <p><span class="b">影响因素：</span>如您曾做过修改佣金发放条件、手工修改客户交易状态等操作，可能会导致部分数据有一定表面的误差。</p>
            <span class="border-arrow" style="right:103px"></span>
        </div>
    </div>
</div>
